package com.wangp.javase.object_oop.person;

/**
 * <p>
 * 第一行简要描述.
 * </p>
 *
 * @author wangping
 * @since 2024-12-15
 */
public class PersonTest {

    public static void main(String[] args) {

        Person person1 = new Person();
        person1.age=10;
        person1.gender='男';
        person1.name="jack";
        System.out.println("name:"+person1.name+ ",age:"+person1.age+",gender:"+ person1.gender);
        person1.eat();
        person1.sleep(10);
        person1.interest("画画");

        Person person2 = new Person();
        person2.age=11;
        person2.gender='女';
        person2.name="lucy";
        System.out.println("name:"+person2.name+ ",age:"+person2.age+",gender:"+ person2.gender);
        person2.eat();
        person2.sleep(8);
        person2.interest("拍照");
    }
}
